package com.fbs.service.impl;





import com.fbs.entity.Xin;
import com.fbs.mapper.XinMapper;
import com.fbs.service.XinService;
import com.fbs.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author 13745
* @description 针对表【xin】的数据库操作Service实现
* @createDate 2023-03-18 15:29:19
*/
@Service
public class XinServiceImpl implements XinService {
        @Autowired
        private XinMapper xinMapper;

    @Override
    public Result save(Xin xin) {
        int insert = xinMapper.insert(xin);
        if (insert!=0){
        return new Result(2000,"存入成功");
        }
        return new Result(2000,"存入失败");
    }
}
